﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Teachers:Person
    {
        private string title;//职称
        private string wageno;//工资

        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }
        public string Wageno
        {
            get { return this.wageno; }
            set { this.wageno = value; }
        }

        public void MSG()
        {
            Id = 12;
            Name = "张三";
            Sex = "男";
            Cardid = "123456";
            Tel = "11111";
            Title = "高级教师";
            Wageno = "5000";
        }

        public void PrintMSG()
        {
            Console.WriteLine(Id + " " + Name + " " + Sex + " " + Cardid + " " + Tel + " " + Title + " " + Wageno);
        }
    }
}
